﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace CivitaiCLI.Utils
{
    public static class WebExtensions
    {
        public static CookieContainer ToCookieContainer(this CookieCollection collection)
        {
            CookieContainer container = new CookieContainer();
            if (container != null && container.Count > 0)
                container.Add(collection);
            return container;
        }
    }
}
